package com.rhyton.component.upload.web;

import java.util.List;

import com.opensymphony.xwork.ActionSupport;
import com.rhyton.component.upload.domain.AttactFile;
import com.rhyton.component.upload.service.AttactFileManager;

public class AttactFileListAction extends ActionSupport {

    private static final long serialVersionUID = -3248224208028446635L;

    public String listAttactFile() {
	List<AttactFile> attactFiles = this.attactFileManager.queryAttactFiles(attactFile);
	this.setAttactFileList(attactFiles);
	return SUCCESS;
    }

    private AttactFile attactFile;

    private List<AttactFile> attactFileList;

    private AttactFileManager attactFileManager;

    public void setAttactFileManager(AttactFileManager downloadFileMgr) {
	this.attactFileManager = downloadFileMgr;
    }

    public AttactFile getAttactFile() {
	return attactFile;
    }

    public void setAttactFile(AttactFile attactFile) {
	this.attactFile = attactFile;
    }

    public List<AttactFile> getAttactFileList() {
	return attactFileList;
    }

    public void setAttactFileList(List<AttactFile> attactFileList) {
	this.attactFileList = attactFileList;
    }
}
